/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.digitalization.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseService;
import org.springblade.core.tool.api.R;
import org.springblade.modules.digitalization.entity.B01Entity;
import org.springblade.modules.digitalization.vo.B01VO;
import org.springblade.modules.system.entity.Dict;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.Valid;
import java.util.List;

/**
 * 单位基本情况信息集-JAVA 服务类
 *
 * @author RS
 * @since 2022-10-18
 */
public interface IB01Service extends BaseService<B01Entity> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param b01
	 * @return
	 */
	IPage<B01VO> selectB01Page(IPage<B01VO> page, B01VO b01);

	/**
	 * 树形结构
	 *
	 * @param tenantId
	 * @return
	 */
	List<B01VO> tree(String tenantId);

	List<B01VO> treeWithAuth(String tenantId);

	List<B01VO> tree(String tenantId, List<Long> deptIds);


	R upload(MultipartFile multipartFile);

	List<B01VO> dictory();

	/**
	 * @param tenantId
	 * @param deptCode 更具deptCode查找所有父节点
	 * @return
	 */
	List<B01Entity> path(String tenantId, String deptCode);


	boolean update(B01Entity b01);
}
